home *** CD-ROM | disk | FTP | other *** search
- PXFTIMES(3F) Last changed: 1-6-98
-
-
- NNAAMMEE
- PPXXFFTTIIMMEESS - Gets process times
-
- SSYYNNOOPPSSIISS
- SSUUBBRROOUUTTIINNEE PPXXFFTTIIMMEESS ((_j_t_m_s,, _i_t_i_m_e,, _i_e_r_r_o_r))
- IINNTTEEGGEERR _j_t_m_s,, _i_t_i_m_e,, _i_e_r_r_o_r
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- IEEE standard interface for FORTRAN 77
-
- DDEESSCCRRIIPPTTIIOONN
- On IRIX systems, this routine is in lliibbffoorrttrraann..ssoo which is linked by
- default when compiling programs with the MIPSpro 7 Fortran 90 compiler
- or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
- 7.2 F77 compiler.
-
- The PPXXFFTTIIMMEESS subroutine uses the ttiimmeess(2) system call to access system
- and user CPU time and wall-clock time for the current process and any
- child processes.
-
- Components of the ttmmss structure are:
-
- * ttmmss__uuttiimmee: User CPU time
-
- * ttmmss__ssttiimmee: System CPU time
-
- * ttmmss__ccuuttiimmee: User CPU time of terminated child processes
-
- * ttmmss__ccssttiimmee: System CPU time of terminated child processes
-
- The processing time for a child process is included in the ttmmss__ccuuttiimmee
- and ttmmss__ccssttiimmee elements of the ttmmss structure when the parent process
- waits for child process termination.
-
- When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
- UNICOS, UNICOS/mk, or IRIX systems, all arguments must be of default
- kind unless documented otherwise. On UNICOS and UNICOS/mk, default
- kind is KKIINNDD==88 for integer, real, complex, and logical arguments; on
- IRIX, the default kind is KKIINNDD==44.
-
- The following is a list of valid arguments for this routine:
-
- _j_t_m_s A handle of type _t_m_s created with PPXXFFSSTTRRUUCCTTCCRREEAATTEE(3F).
-
- _i_t_i_m_e An output integer variable for the number of system hardware
- clock ticks since some arbitrary point in the past (for
- example, system startup time). This point does not change
- from one invocation to another during the execution of the
- process.
-
- _i_e_r_r_o_r An output integer variable that contains zero if PPXXFFTTIIMMEESS
- was successful or nonzero if PPXXFFTTIIMMEESS was not successful.
-
- PPXXFFTTIIMMEESS may return the EEBBAADDHHAANNDDLLEE error value if _j_t_m_s is an invalid
- handle or has an incorrect handle type.
-
- EEXXAAMMPPLLEESS
- This example shows how to use the PPXXFFTTIIMMEESS routine to retrieve system
- and user CPU time information since the beginning of process
- execution.
-
- program testpxf
- integer itime, jtms, ierr, itmp
- c create the tms struct
- call PXFSTRUCTCREATE('tms',jtms,ierr)
- print *,'structcreate error = ',ierr
- c call PXFTIMES and print out returned information
- call PXFTIMES(jtms,itime,ierr)
- print *,'time = ',itime
- call PXFINTGET(jtms,'tms_utime',itmp,ierr)
- print *,'tms_utime = ',itmp,' ',ierr
- call PXFINTGET(jtms,'tms_stime',itmp,ierr)
- print *,'tms_stime = ',itmp,' ',ierr
- call PXFINTGET(jtms,'tms_cutime',itmp,ierr)
- print *,'tms_cutime = ',itmp,' ',ierr
- call PXFINTGET(jtms,'tms_cstime',itmp,ierr)
- print *,'tms_cstime = ',itmp,' ',ierr
- c free the tms struct
- call PXFSTRUCTFREE(jtms,ierr)
- end
-
- SSEEEE AALLSSOO
- ttiimmeess(2)
- PPXXFFSSTTRRUUCCTTCCRREEAATTEE(3F)
-
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-
- 2165, for the printed version of this man page.
-
-